<?php
include ("../model/connect.php");
include ("../model/Staff/class-course.php");

$courseid = $_POST['courseid'];
$coursename = $_POST['coursename'];
$coursecredit = $_POST['coursecredit'];
$trnpid= $_POST['trnpid'];
$coursesecond = $_POST['coursesecond'];
$reltype = $_POST['reltype'];

$course = new Course();
    $course->addCourse($courseid,$coursename,$coursecredit,$trnpid,$coursesecond,$reltype);
   mysql_close($conn);
    header("location:http:/educational/staff-index.php?p=staff-man-course");
?>